import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userReg:false,
    userlog:false,
    userp:sessionStorage.getItem('uphone'),
    useron:false
  },
  mutations: {
    updateShow(state,newval){
      state.userReg=newval
    },
    updatelogin(state,newval){
      state.userlog=newval
    },
    updateuseron(state,newval){
      state.useron=newval
    },

  },
  actions: {
  },
  modules: {
  }
})
